package routers

import "gin_study_blog/api"

func (r RouterGroup) MenusRouter() {
	menusApi := api.ApiGroupApp.MenusApi
	// 添加菜单
	r.POST("menus", menusApi.MenusCreateView)
	r.GET("menus", menusApi.MenusListView)
	r.GET("menu_names", menusApi.MenusNameListView)
	r.PUT("menu/:id", menusApi.MenusModifyView)
	r.DELETE("menu", menusApi.MenusDeleteView)
	r.GET("menu/:id", menusApi.MenusDetailView)
}
